<?php
namespace app\common\model;

class StaffApplyModel extends Model {
	
	protected $table = 'staff_apply';
	protected $id = 'id';
	protected $type = array(
		'id' => 'integer',
		'subscriber_id' => 'integer',
		'realname' => 'string',
		'phone' => 'string',
		'idcard_frontend' => 'string',
		'idcard_backend' => 'string',
		'idcard_hold' => 'string',
		'region_id' => 'string',
		'region_name' => 'string',
		'create_time' => 'integer',
		'result' => 'integer',
		'result_message' => 'string',
		'dispose_time' => 'integer',
	);
	
	public static $result = array(
		0 => '未处理',
		1 => '请求通过',
		2 => '请求拒绝',
	);
	
	public function getResultName() {
		return $this->disposeAttr(self::$result, $this->getData('result'));
	}
	
}